package com.li.o2oSystem.dto;

import java.util.List;

import com.li.o2oSystem.entity.Shop;
import com.li.o2oSystem.enums.ShopStateEnum;

public class ShopExecution {
	private int state;//结果状态
	private String stateInfo;//状态标识
	private int count;//店铺数量
	private Shop shop;//操作的店铺(增删改)
	private List<Shop> shopList;//店铺的列表（查询）
	
	public ShopExecution(){
	}
	/**
	 * 操作失败调用的构造器
	 * @param stateEnum
	 */
	public ShopExecution(ShopStateEnum stateEnum){
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
	/**
	 * 操作成功时调用的构造器（增删改）
	 * @param stateEnum
	 * @param shop
	 */
	public ShopExecution(ShopStateEnum stateEnum,Shop shop){
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.shop = shop;
	}
	/**
	 * 操作成功时调用的构造器（查）
	 * @param stateEnum
	 * @param shopList
	 */
	public ShopExecution(ShopStateEnum stateEnum,List<Shop> shopList){
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.shopList = shopList;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public String getStateInfo() {
		return stateInfo;
	}
	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	public Shop getShop() {
		return shop;
	}
	public void setShop(Shop shop) {
		this.shop = shop;
	}
	public List<Shop> getShopList() {
		return shopList;
	}
	public void setShopList(List<Shop> shopList) {
		this.shopList = shopList;
	}
	
}
